#include <iostream>
#include <unistd.h>
#include "./Lib/Events.h"
#include "./Lib/init.h"
// If you ran into a problem while compiling, please try to use this definition.
// Other wise, you'd best not to use it.
// #define _WIN32
#include "./Lib/tui/tui.h"
using namespace std;

inline void ShowHello(Console& Object){
	cout<<"Welcome to Herta's Simulated Universe"<<endl;
	cout<<"This is a small game written by ZhuKairui0 && CLydq"<<endl;
	cout<<"Have a good time!"<<endl;
	waiting(0);
	system("cls");
}
void Start(Console& Object, PlayerData& Save){
	ShowHello(Object);
	cout<<"Reading your save.Please wait."<<endl;
	if(access("Save.dat", F_OK) == 0){
		cout<<"Maybe your save is lost."<<endl;
		waiting(0);
		cout<<"Please check if there's a file named \"Save.dat\" in the same dir as your game file"<<endl;
		waiting(0);
	}
}
signed main(){
	Console Object=init();
	PlayerData Save;
	PlayerData InGame;
	Start(Object, Save);
    return 0;
}